package com.pet.server.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * ProductView entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "product_view")
public class ProductView implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer productId;
	private String viewType;
	private String viewChannel;
	private String imgPath;
	private String textTitle;
	private String textContent;
	private Integer seq;
    private String state; 
    private String isDsp;
    private String dspName;
    private Integer num;
    
    
    @Column(name = "NUM")
	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	// Constructors
    @Column(name = "is_dsp")
	public String getIsDsp() {
		return isDsp;
	}

	public void setIsDsp(String isDsp) {
		this.isDsp = isDsp;
	}
	@Column(name = "dsp_name")
	public String getDspName() {
		return dspName;
	}

	public void setDspName(String dspName) {
		this.dspName = dspName;
	}

	/** default constructor */
	public ProductView() {
	}

	/** full constructor */
	public ProductView(Integer productId, String viewType, String viewChannel,
			String imgPath, String textTitle, String textContent) {
		this.productId = productId;
		this.viewType = viewType;
		this.viewChannel = viewChannel;
		this.imgPath = imgPath;
		this.textTitle = textTitle;
		this.textContent = textContent;
	}

    	
	@Column(name = "state")
	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	@Column(name = "seq")
	public Integer getSeq() {
		return seq;
	}

	public void setSeq(Integer seq) {
		this.seq = seq;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "product_id")
	public Integer getProductId() {
		return this.productId;
	}

	public void setProductId(Integer productId) {
		this.productId = productId;
	}

	@Column(name = "view_type", length = 32)
	public String getViewType() {
		return this.viewType;
	}

	public void setViewType(String viewType) {
		this.viewType = viewType;
	}

	@Column(name = "view_channel", length = 32)
	public String getViewChannel() {
		return this.viewChannel;
	}

	public void setViewChannel(String viewChannel) {
		this.viewChannel = viewChannel;
	}

	@Column(name = "img_path", length = 64)
	public String getImgPath() {
		return this.imgPath;
	}

	public void setImgPath(String imgPath) {
		this.imgPath = imgPath;
	}

	@Column(name = "text_title", length = 20)
	public String getTextTitle() {
		return this.textTitle;
	}

	public void setTextTitle(String textTitle) {
		this.textTitle = textTitle;
	}

	@Column(name = "TEXT_CONTENT", length = 64)
	public String getTextContent() {
		return this.textContent;
	}

	public void setTextContent(String textContent) {
		this.textContent = textContent;
	}

}